package sctu.edu.java.year2016.team04.Liliang.day20160523.chapter5_3;

/**
 * Created by asus on 2016/5/23.
 * 编写Java程序，创建二维数组arr[]，将二维数组中所以元素的和输出.
 */
public class date_erwei {
    public static void main(String[] args) {
        int sum = 0;
        int arr[][] = new int[][]{{5, 6}, {4, 63, 7}, {23, 5}};
        for (int b = 0; b < arr.length; b++)
            for (int c = 0; c < arr[b].length; c++) {
                sum = sum + arr[b][c];
            }
        System.out.println("数组之和为：" + sum);
    }
}
